<?php
namespace app\validate;

use think\Validate;

class MonitorValidate extends Validate
{
	protected $rule = [
			'name'=>  'require',
			'identification'      => 'require',
			 'type'       =>  'require|number|in:1,2,3',
	];
	
	protected $message  =   [
			'name.require' => '信息名称不能为空',
			'identification.require' => '信息唯一键不能为空',
			'type.require' => '类型不能为空',
			'type.number' => '类型为整数',
			'type.in' => '类型取值错误',
			// 'content.require'   => '评论内容不能为空',
			// 'content.max' => '评论内容在150个字之内'
	];
	
}